package demo1;

public class Tect1 {
    public static void main(String[] args) {
       MySingleList mySingleList = new MySingleList();
        mySingleList.addLast(1);
        mySingleList.addLast(2);
        mySingleList.addLast(3);
        mySingleList.addLast(2);


        if(mySingleList.chkPalindrome(mySingleList.hear)){
            System.out.println("是回文");
        }else {
            System.out.println("不是回文");
        }



    }
}
